Home:ALL Converter>What is the Oracle equivalent of the Informix `interval` function?

What is the Oracle equivalent of the Informix `interval` function?

Ask Time:2012-06-19T03:24:31         Author:This 0ne Pr0grammer

Json Formatter

I have been tasked with converting some scripts referencing an Informix database to be compatible with a new Oracle database.

I thought I would start out by going through the individual scripts and looking for function calls that may vary syntactically between Informix and Oracle. I had been able to find the Oracle equivalent for most of the function calls I came across, however this one has me a little stumped:

where f.writetime > current - interval(xxx) day to day

What exactly does that function mean, particularly the (xxx) part and what is the Oracle equivalent?

Author:This 0ne Pr0grammer,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/11089643/what-is-the-oracle-equivalent-of-the-informix-interval-function
yy